<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="jquery-ui.min.css"/>
	</head>
	<body>
		<span>请输入：</span>
		<input id="tags">
		<script src="../../jquery-1.12.4.min.js"></script>
		<script src="jquery-ui.min.js"></script>
		<script>
			//定义数组
			var arr=['java','c','javascript','android','mysql','html&css'];
			$('#tags').autocomplete(
				{
					source:arr
				}
			);
		</script>
	</body>
</html>
